import {createRouter,createWebHistory} from 'vue-router'
import PiniaPage from '@/Views/PiniaPage.vue'
import PropPage from '@/Views/PropPage.vue'
import EmitPage from '@/Views/EmitPage.vue'
import vModel from '@/Views/v-modelPage.vue'
import AttrsPage from '@/Views/AttrsPage.vue'
import MittPage from '@/Views/MittPage.vue'
import ProvideInjectPage from '@/Views/Provide&injectPage.vue'
import RefParentPage from '@/Views/Ref&ParentPage.vue'
import SlotPage from '@/Views/SlotPage.vue'

export default createRouter({
  history:createWebHistory(),
  routes:[
    {path:'/',redirect:'pinia'},
    {path:'/pinia',component:PiniaPage},
    {path:'/prop',component:PropPage},
    {path:'/emit',component:EmitPage},
    {path:'/v-model',component:vModel},
    {path:'/mitt',component:MittPage},
    {path:'/attrs',component:AttrsPage},
    {path:'/provideinject',component:ProvideInjectPage},
    {path:'/refparent',component:RefParentPage},
    {path:'/slot',component:SlotPage},
  ]
})